import request from '@/utils/request';

// 会员列表
export function userList (params) {
  return request({
    url: 'v1/user/list',
    method: 'get',
    params
  });
}
// 会员编辑
export function userEdit (data) {
  return request({
    url: 'v1/user/edit',
    method: 'post',
    data: data
  });
}
// 修改余额
export function changeCoin (data) {
  return request({
    url: 'v1/user/changeCoin',
    method: 'post',
    data: data
  });
}
// 充值记录
export function chargeList (params) {
  return request({
    url: 'v1/user/chargeList',
    method: 'get',
    params
  });
}
// 删除用户
export function deleteUser (data) {
  return request({
    url: 'v1/user/deleteUser',
    method: 'post',
    data: data
  });
}
// 消费记录
export function payList (params) {
  return request({
    url: 'v1/user/payList',
    method: 'get',
    params
  });
}
// 邀请列表
export function inviteList (params) {
  return request({
    url: 'v1/user/inviteList',
    method: 'get',
    params
  });
}
// 实名认证
export function realnameList (params) {
  return request({
    url: 'v1/certification/list',
    method: 'get',
    params
  });
}
// 编辑实名认证
export function realnameEdit (data) {
  return request({
    url: 'v1/certification/edit',
    method: 'post',
    data: data
  });
}
// 总统计数据
export function total (params) {
  return request({
    url: 'v1/user/total',
    method: 'get',
    params
  });
}
// 提现账户列表
export function accountList (params) {
  return request({
    url: 'v1/account/list',
    method: 'get',
    params
  });
}
// 提现账户审核
export function accountEdit (data) {
  return request({
    url: 'v1/account/edit',
    method: 'post',
    data: data
  });
}